using System;
using System.ComponentModel;
using System.Windows.Forms;

namespace ExperimentRuleEditor
{
	public class Interpretation_Editor : Form
	{
		private string m_LInterpretation = "";

		private IContainer components;

		private Button btOk;

		private Button btCancel;

		private TextBox tbInterpretation;

		public string GetInputInterpretation
		{
			get
			{
				return m_LInterpretation;
			}
		}

		public Interpretation_Editor(string mInterpretation)
		{
			InitializeComponent();
			m_LInterpretation = mInterpretation;
			tbInterpretation.Text = m_LInterpretation;
		}

		private void btOk_Click(object sender, EventArgs e)
		{
			m_LInterpretation = tbInterpretation.Text;
			base.DialogResult = DialogResult.OK;
			Close();
		}

		private void btCancel_Click(object sender, EventArgs e)
		{
			Close();
		}

		protected override void Dispose(bool disposing)
		{
			if (disposing && components != null)
			{
				components.Dispose();
			}
			base.Dispose(disposing);
		}

		private void InitializeComponent()
		{
			System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ExperimentRuleEditor.Interpretation_Editor));
			this.btOk = new System.Windows.Forms.Button();
			this.btCancel = new System.Windows.Forms.Button();
			this.tbInterpretation = new System.Windows.Forms.TextBox();
			base.SuspendLayout();
			resources.ApplyResources(this.btOk, "btOk");
			this.btOk.Name = "btOk";
			this.btOk.UseVisualStyleBackColor = true;
			this.btOk.Click += new System.EventHandler(btOk_Click);
			resources.ApplyResources(this.btCancel, "btCancel");
			this.btCancel.Name = "btCancel";
			this.btCancel.UseVisualStyleBackColor = true;
			this.btCancel.Click += new System.EventHandler(btCancel_Click);
			resources.ApplyResources(this.tbInterpretation, "tbInterpretation");
			this.tbInterpretation.Name = "tbInterpretation";
			resources.ApplyResources(this, "$this");
			base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			base.Controls.Add(this.tbInterpretation);
			base.Controls.Add(this.btCancel);
			base.Controls.Add(this.btOk);
			base.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
			base.MaximizeBox = false;
			base.MinimizeBox = false;
			base.Name = "Interpretation_Editor";
			base.ShowIcon = false;
			base.ShowInTaskbar = false;
			base.ResumeLayout(false);
			base.PerformLayout();
		}
	}
}
